<?php

namespace App\Admin\Controllers;

use App\Admin\Models\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class UserController extends Controller
{
	//admin
	public function login(Request $request)
	{
		$user = User::query()->where('id', $request->post('id'))->first();
		return auth()->guard('admin')->login($user);
	}

	public function me()
	{
		return auth()->guard('admin')->user();
	}
}
